package com.xinghanlaser.applet.base.common.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author grandpa
 * @date 2023/3/20 14:25
 * @describe 电话校验注解
 */
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {PhoneValidator.class})
@Documented
public @interface PhoneValidated {
    String message() default "手机号码格式格式不正确";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
